package com.tubang.logistics.exception;

public class BizException extends RuntimeException {

	private static final long serialVersionUID = -160485734664530479L;

	/**
	 * 默认业务错误码 从 10000开始
	 */
	public static final Integer DEFULT_BIZ_CODE = 10001;

	private int code;

	private String message;

	private Object data;

	public BizException(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public BizException(){

	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
